package com.zhuanzhuan.hero.user.vo.label;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @ClassName BatchRelateBusinessLabelVO
 * @Description
 * @Author hanjunjun
 * @Date 2024/7/1 14:50
 */
@Data
@NotNull
public class BatchRelateBusinessLabelVO {

    private Boolean isSuccess;

    /**
     * 关联失败的uid
     */
    private List<Long> failUids;

    public BatchRelateBusinessLabelVO(Boolean isSuccess, List<Long> failUids) {
        this.isSuccess = isSuccess;
        this.failUids = failUids;
    }

    public static BatchRelateBusinessLabelVO buildSuccess() {
        return new BatchRelateBusinessLabelVO(true, null);
    }

    public static BatchRelateBusinessLabelVO buildSuccess(List<Long> failUids) {
        return new BatchRelateBusinessLabelVO(true, failUids);
    }
}
